package com.ruoyi.qywx.getway.request;

/**
 * @author : hcl
 * @Date : 2023/9/1 15:27
 */
public enum ErrorCode {
    ERR_60103(60103, "手机号码不合法");

    private String err;
    private Integer code;

    ErrorCode(Integer code, String err) {
        this.err = err;
        this.code = code;
    }

    public static ErrorCode of(Integer code) {
        for (ErrorCode e : ErrorCode.values()) {
            if (e.getCode().equals(code)) return e;
        }
        return null;
    }

    public String getErr() {
        return err;
    }

    public Integer getCode() {
        return code;
    }
}
